added hide & sort functionality