added centering methods to UIView extension