added ui hash functionality