modified bottom refresh logic