Change button icon in agenda view
Move code to main.js and link to files
Use Javascript history.back() for back buttons