create and destroy actions for actionscontroler