Add mouse coordinate system and mouse card detection
correct the logic in home.js