setting up backbone logic