first version of the frontend; demo mode