added base function to gui