changed CSS and added angularindex func