moved the 'new' class into the click event