set angular controller properly