layout fixes for mac