restore buttons creation in layoutSubviews for iOS 5 compatibility

related to issue #36