restore buttons creation in layoutSubviews for iOS 5 compatibility