add notice and alert to PostsController