set correct behavior of accordion