Updated gui functions.