fixed messagebox fade
refactored