page refreshes if refresh image clicked