mobile accordion and refactoring