improving the button feature
adding filter to fields
Refactor: adding behavior to the button feature