Added condition subtab and connected it to controller

Added the condition subtab and added ajax events to call the controller.
Data populates up into definition box