Implemented REFRESH, encoding bug fix

Implemented REFRESH functionality in EDIT panel
Bug fix about encoding problems