found bug. reverted small changes. 
added focus capabilities.