Added css styling and refactored PostCtrl to use a promise