jquery todo:router, toggle and edit function