switched to id's. Removed unnecessary views. Moved some view functionality out of the view into main.js