added middle mouse button panning
Added update_item method
code cleanup