renamed functions to doAction methods