adding tags and media constraints