added buttons for sorting with submit button, gallery