fixed launch bug  by applying index functionality