Adding action to controller