Added necessary functions for main community page