added sortable functionality