add edit line functionality