New Function and gui to Event