changed all places where used layoutsubviews directorly in place of layoutsubviewsifneeded