reworked the application templete to be haml