change navigation from md to haml