added directives to show or hide product and purchase button