Fixed imports not working with new tab templates.

fixes #144