added possibility to add as a subview of another view