makes angular work on main page