added current page method to _mainnav.erb. This solves issue #14