added button handlers and jquery to views.js