Added a few things comments to the button handler