fixed child gui var declaration next line
more comments
commented and added page setup functionality