add sort function to users and add top bar