fixed pull to refresh empty view! added a flag for pull to refresh