Added flow to the front end