prefer to execute endRefreshing as the last thing inside your method