Added insert event to gui