add custom indent and outdent function, to take care of lists