added backbone MVC and logic