added r c command to make the window in the center of the screen