Remove the session area when empty; improved dialog UI code