adding directives for show hide, app preview