Made code consistent with other dashboard modules.