initializing front-end