created service layer to organize application front end logic