change bp_is_page to appropriate functions as bp_is_page is deprecated in bp1.7