Inlined dialog action classes and added escape key binding