Implements simple accordion functionalities