Dialog.ui not opening when a variable is declared in Dialog.h