added ability to open application, as well as focus