add class to html element only on init