add and remove item in matrix functionality temp. hide