(SoftwareUnitsJPanel.java) Refactored and added button control

Enables and disables buttons according to selection