added check for already existing views
added resize contentView Feature