Surely initialize after mail-startup-done event happened

Avoid to use magic number to initialize UI.
Indent