change messages page to MasterDetailPage