Refactor view switching directive, correct errors introduced by push to 1.2.10