Added methods to perform operations based on button click