making generic list component and working on editing logic