added base UI for sorting the posts