implemented centeronresize option