update: allow calling other callbacks after running handleMainView callback