Bug in perf page (impossible to publish malformed)

... and minor cosmetics
if/else for publish/unpublish button
...

Signed-off-by: JB Touchard <jbt@txtnet.com>