implements front-end prototype