Show attendance matrix and refactore the matrix