converted application to haml