fix to view and javascripts for asset precompile issues