Removed unused scripts and changed error display