Remove old view scripts
Fix errors with loading active record objects
Remove old files