fixed lots of errors due to using wrong version of Rails
changes to views