Added save/edit functionality and error checking