modal settings + ask-before-leaving setting option