re #117 fix template count in main screen