Added functionality to click action. Doesn't work as expected though.