BUG FIX: display javascript had the wrong function applied to the id