Fix bugs, and links to controller in jsps