Sample docs page example

Think it worth moving this logic to resolve to keep controller clean. 
Also, there's commented code on line 8