changed buttons and added a form