Changed CenterWindow into an extension Method