added sort features and some styling