logic for open demo project