added simple front-end code