added edit indicator functionality