add pages and relative resources