Modified signature to add attribute allow edit as the template expects this attribute