fix datebox layout