Fixed template show page

Fix #354 by uncommenting the relations and rewrite the scope