Fix unit dialog layout
Action dialog does not close after one click