refactor mouseHandlers with getEntityFromMouse(e)