separate back and forward function to rootscope, still not working, would try to use $animate service