Position class and updated event handlers