made slock more readable, added root variable because we intend to call RootWindow...