added zero position rect function to UIView