Built the handler for the posts