event handling to update locationsview