ported front end logic to backbone