make friend selector a plugin