improving the process of generating pages

@cberzan 
So this is the way to introduce dependencies?