Added a flag for appending an action or not.

If you selected PagesController you can skip that you add an action into the controller.