refactors code in views user index and video show and removes superfluous test in relationships controller test suite