working on the fields and button