added settings option in layout
moved html to haml and modified with better UI