Added initial code for frontend flask