changed show() to exec_()