some index and styles manipulations