Action redirect

Also fixed some transaction issues around get_task_instances and some cosmetic improvements