made demo application functional