Add js switch for pulic posts state
Add method changePublicState