added optional argument className to be used for edit link