added set target variable to mainscreen