functions added on GUI