Implemented Promise logic in InitApp method