Ui posts refactor

@taesup @akinsey can one of you review these changes and merge them with master? I would like a second set of eyes on this stuff (so i dont just jump in and wreck something :)