Small fixes related to post cell ui, related to code style, defensive check and removing unnecessary code blocks