add permissions check on ballot item edit links
doni't display debug info unless debuuging()
note for later