Add layer reloading in frontend