refactor to parse video url and get id on template, prevent issues