updated mouse tools

mouse tools stops working on leaving the canvas