refactor films.xhtml