support x and y params as window position in initializing