Creating event by pressing bottom. Code cosmetic changes.