Added accordion logic