Edit function is implemented by using delegate--with a markdown test