Changes to notebook rename logic

changes for #2522 and #1702, please review, UI for rename not allowed and upload overwrite check is pending.