Witam,
nie wiem jaki problem opisujesz, bo strasznie to zagmatwałeś.
Poczytaj ten wątek.