Modify query_yes_no to return bool
Fix template formatting