ERB to HAML and navigation fixed