modified resource js to link to new page