[Mouse] add mouse funcionality to main thread