moved list refreshing things to refreshlist function