working on implenting subview