Added layoutSubviews method to reposition subviews