Events button works dynamically