bugfix in template view
username bugfix