adding most popular post function and other minor updates