Created a dialog for exit of app and made setLayoutFont static