proper declaration of angular controllers