improve details layout