Some fixes to manage_resources.js

Retab
Remove unncessary code