made register's jinja neater