Handled Mac Crash

Fixed some issue where the mac version was crashing. UI pointer was not
initialized.

Removed light src since it's not used yet.