Added some gui utils