Standardized according to Flask Documentation
Modified views.py