indexer function added to fx ui