added optionDialog, changed clickListener in cardViewController, added click listener in mainWindow for menus