added dependencies and indexController