moved entry logic to separate file, renamed demo pages