fixed problem with buttons in iOS 6 and other minor issues