finally got edit feature on dashboard working