working on preview mode on program create