add created pages to correct collection
sort pages coming from server
add test dir