fix problem where sort button doesn't disappear on home screen