front-end code to house ab backend calls