Added assignments
Fixed bug in page loader init function