more angular way of defining controllers