refactor WebConfig & WebInitializer