changed view to resolve travis-ci error of 'HTTP_REFERE' key error