move helpers method to /helpers/qhelpers.rb