added refresh functionallity to dictionaries