Fixed gunicorn startup
Refactoring templates
Added loading spinner