using class in index.css replace style-code && refactor the form on haml file