Added method to set window position