I have simplified my code above, than you guys can understand easier.