Reworked indeterminate checkbox, added focus css for dialog