some controller magic
more angular magic