commit with changes in mouseleave