mouse up and mousedown function added with console log enteries