add base element and frame functions to gui lib