consolidated demo display functions into 1
adjusted css