Added viewWillLayoutSubviews method