Restructured app from single file to blueprints