fix order view. fix some templates