refactoring js and css code, settings app, and pushAndPop css module