Added set window location functionality