updated views and added basic, but incomplete, ajax