trying to refresh only when device changes orientation, but refreshes too much