Bind events in correct place. Get data-url from clicked button.

Change classname that denotes set button and alter styles.