fix resetNav - do by rails, not javascript