fix transition bug

Signed-off-by: Kien Luu <kienluu@kien56.local>
added Page related classes, code clean up, and bug fixes

Signed-off-by: Kien Luu <kienluu@kien56.local>