added destory method to pages controller