added pause on lost focus
minor project changes