fixed doc block comment
add method to get pages of a tab control
cleanup & added event handling