Added a function to set windows position