litle refactoring of my pages_helper.rb