changing app refrence in layouts