REFACTOR showing/hidding of sort button