Controls are showing and hiding upon window focus