fix admin next redirect and remove main.js startup script