added edit and save features