editing funcionality added to second tab