added edit flag