setting up angular controller & template abstraction