BaseDialog now makes submit and cancel protected for better support