Add some gui codes