added update to pages_controller