Retrieve element from template