Fixed #58 and changed the default value of enableCancelButton to false