try singleton and access appdelegate