moved main js to print.js, added import view, added ui-router