Fixes page refreshing after updating a new file