set events for viewport controls