covert application layout to haml and added header