Make filter for dropdown values and change edit functionality