added reloadStylesheets function