activity index and edit working