refreshActivityList() will do the job in the same way with less statements.