Add button type to buttons to prevent form submission
Use get methods intead of attributes hash in models