edit_area:
encapsulated main mouse funtions