It is quite difficult to answer questions in detail on this channel. Best is to ask these kind of question on StackOverflow (stackoverflow.com/questions/tagged/sapui5) or the SAP Community (answers.sap.com/questions/ask.html?primaryTagId=500983881501772639608291559920477), so your issue can be discussed properly.