Updates sidebar behaviour