add index and linked styling