updates ui for posts and login