Use pushState
Do not open the 'saveas' popup if we are not editing a file