add pages controller function
fix conflict for gemfile