Chaged the selection of the ribbon pages and SelectedObject retrieval