Add option to disable the exit button and action