Created new public method to MainWindow to get view index. Currently