added some gui handlers