Deleted unnecessary code in views