finished framework for frontend stuff