Removing unnecessary stuff
Added handlers to listen for dialog user action events