Updated button & panel handling for mode select

Bonus: removed dependency on bootstrap.js and jQuery (for now, anyway?)