tidying and preparing samplepanel.html for later use