front end logic