pub sub implemented completely. UI beautified!