fixed HAML error on submit, converted application layout to haml