fixed rendering logic for publish button
Merge origin/master
fixed issue with old versions showing latest version files