Filled in more implementation for page composition. Needs events, need to get rid of old code, needs testing, need to implement a find function