add some basic edit custom function