restored files and fixed bug in views