added a Center method to the frame