added code to kill processes when main window is closed
Added PIN functionality to add emp