add patials and remove the associated code from the main haml file