add metadata method to page model
do not assign @title instance variable in pages controller anymore