created demo controller