Added page transistions and cleanuping of views while page transistions.