http://stackoverflow.com/questions/23141574/perform-different-actions-on-selected-page-elements-using-different-buttons-with