moved reload button toggle to callback function