Added Pull to refresh function