fix some issues with admin js and admin rails errors