Fix #301, Fix #300, Added a decodeLink function, refreshing the URL params keyvaleditor in refreshLayout