Simplified widget template selection logic and documentation