layout fixes
implement event maximum