put window in the center of screen and fix renderArea