add CSS selector to doAction function