Refactoring Post Widget UI Code.