change the method for initialization a app