Changed IButton try/catch to if/else