implemented getSelectedView()