Group chooser button can be clicked to dismiss

* if no groups availalbe, the chooser would not be closable
Clean up button layout for job definition tab