Check if view should be added before creating it

Check in the hooks if something should be added not when it is created. So
the authors box was added on some special pages for example

Change-Id: I508a6579e2068ebd177889760e53b6dc8507b2e5
Merge "Check if view should be added before creating it"