fix undefined variable and add status display for filtered users