GUI portion working for prefix search