basic controller for angular