Getting the path ID from GUI