Variables for UI elements added

Also added comments