added button manager and events for it