use that as your hook for a simple subroutine (loading and storing) and then it will only work when you click the button.