Added mouseup/down functions