Add badges and event listener