edited edit and delete function
problem fixed in get_last_entry