added tooltip and fixed bug in mouseup for firefox