cleaned up routes.py and added contact logic