allow request context in overridden pin form template, remove unused import