code cleanup
implemented pull to refresh