added functionallity to edit and remove a list