Use prevent default method for options dialog