implemented character count and added buttons