staging control as an app with GUI
added crash handling decorator on main function