added checkout ctrl for angular